package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/5/29 15:25
 * @Describe    :
 */
@Parcelize
class PassInfoResponse(

    var backCnt: Int = 0,
    var backPercent: Double = 0.00,
    var flyDistance: Double = 0.00,
    var flyTime: String = "",
    var gatherCnt: Int = 0,
    var passId: Int = 0,
    var passName: String = "",
    var passResult: ArrayList<PassResultList> = arrayListOf(),
    var suns: ArrayList<String> = arrayListOf(),

    ) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = passResult == null || (passResult as List<*>).isEmpty()

    @Parcelize
    class PassResultList(

        var gradeShow: ArrayList<GradeShowList> = arrayListOf(),
        var memberId: Int = 0,
        var memberName: String = "",
        var pigeonId: Int = 0,
        var rank: Int = 0,
        var ringId: String = "",
        var signCnt: Int = 0,
        var speed: Double = 0.0000,
        var userId: Int = 0,
        var winCnt: Int = 0,
        var winMoney: Double = 0.00,

        ) : Parcelable {

        @Parcelize
        class GradeShowList() : Parcelable

    }

}